#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2019/11/4 09:35|09:35
# @Author  : yangdingyi
# @File    : 实现 strStr()
# @Software: PyCharm


class Solution:
    def strStr(self, haystack: str, needle: str) -> int:
        return haystack.find(needle)
        # return -1


solve = Solution()
haystack = "hello"
needle = "ll"
print(haystack, needle)
print(solve.strStr(haystack, needle))


